package com.bwpm.action.base;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import com.jfinal.core.Controller;

public class BaseController  extends Controller{

	public static  Logger log = LogManager.getLogger(Class.class.getName());
	public static Map<String,String> map = new HashMap<String,String>();
	
    public  void initParamsForSingle(){
    	Map<String,String[]> m = new HashMap<String,String[]>();
    	m = getParaMap();
    	for(Entry<String, String[]> e:m.entrySet()){
    		if(e.getValue()!=null && e.getValue().length>0){
    			map.put(e.getKey(),e.getValue()[0]);
    		}
    	}
    }
}
